package com.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by mac_wk on 14-12-10.
 */
public class ThreadExecutor {
    public static final ExecutorService executor = Executors.newCachedThreadPool();
    public static void executor(Runnable ...runnables)
    {
        for (Runnable runnable:runnables)
            executor.execute(runnable);
    }
}
